// $Id: PreferenceInitializer.java 87 2012-02-29 22:49:36Z huijzer@gmail.com $
package lime.application.preference;

import lime.Activator;
import lime.dql.DqlPerspective;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

public class PreferenceInitializer extends AbstractPreferenceInitializer {

	@Override
	public void initializeDefaultPreferences() {

		IPreferenceStore store = Activator.getDefault().getPreferenceStore();

		store.setDefault(GeneralPreferencePage.APPLICATION_DEFAULT_PERSPECTIVE, DqlPerspective.ID);
		store.setDefault(GeneralPreferencePage.APPLICATION_SAVE_STATE, false);
		
		store.setDefault(WorkflowMonitorPreferencePage.WORKITEM_STATE_DORMANT_COLOR, "255,255,255");
		store.setDefault(WorkflowMonitorPreferencePage.WORKITEM_STATE_ACQUIRED_COLOR, "255,255,128");
		store.setDefault(WorkflowMonitorPreferencePage.WORKITEM_STATE_FINISHED_COLOR, "128,255,128");
		store.setDefault(WorkflowMonitorPreferencePage.WORKITEM_STATE_PAUSED_COLOR, "128,255,255");
		store.setDefault(WorkflowMonitorPreferencePage.WORKITEM_STATE_DPAUSED_COLOR, "255,128,128");
		store.setDefault(WorkflowMonitorPreferencePage.WORKITEM_STATE_APAUSED_COLOR, "255,128,128");
		store.setDefault(WorkflowMonitorPreferencePage.WORKITEM_STATE_PPAUSED_COLOR, "255,128,128");
		store.setDefault(WorkflowMonitorPreferencePage.WORKITEM_STATE_FAULTED_COLOR, "255,128,128");
	}

}